import request from '@/utils/request';

export function getAllMenus() {
  return request({
    url: '/museum-role/permission/getAllMenu',
    method: 'get'
  });
}

export function openMenu(permissionId) {
  return request({
    url: `/museum-role/permission/openPermission?permissionId=${permissionId}`,
    method: 'post'
  });
}

export function closeMenu(permissionId) {
  return request({
    url: `/museum-role/permission/closePermission?permissionId=${permissionId}`,
    method: 'post'
  });
}
